package jm.nj.demo02mian.demo11;
/*
* 定义父类(员工)
*
* 属性:姓名,工号
* 方法:工作方法(抽象类)
* */
public abstract class  Employee {
    private String name;
    private String id;

    public abstract void work();

    public Employee (){
        //super();
    }

    public Employee (String name, String id){
        this.name = name;
        this.id = id;
    }

    public String getName(){
        return name;
    }

    public String getId(){
        return id;
    }

    public void setName(String name){
        this.name = name;
    }

    public void setId(String name){
        this.id = id;
    }
}
